package com.finals.function;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.finals.function.app.BaseApplication;
import com.finals.function.util.Util;

public class BaseActivity extends Activity {

	BaseApplication mApp;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mApp = (BaseApplication) getApplication();
	}

	public void setTitlePadding() {
		View titleView = findViewById(R.id.status_bar_title);
		if (titleView != null) {
			titleView.setPadding(0, Util.getStatusBarHeight(this), 0, 0);
		}
	}

	@Override
	public void startActivity(Intent intent) {
		super.startActivity(intent);
		overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
	}
}
